package com.sm.utils;

import com.sm.domain.Permission;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name="permission-service")
public interface PermissionFeign {

	@GetMapping("/permission/bindDefaultRole/{userId}")
	void bindDefaultRole(@PathVariable("userId") Long userId);

	@GetMapping("/permission/getUserRoleCode/{userId}")
	Permission getUserRoleCode(@PathVariable("userId") Long userId);

	@GetMapping("/permission/getUserRoleIds")
	List<Long> getUserRoleIds();
}